package xyz.heyaoshare.core.controller.system.user.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import xyz.heyaoshare.common.entity.bo.PageParam;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户分页请求对象
 * @author YueHe
 * @version 0.0.1
 * @since 2025/5/9 下午3:30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户分页请求对象")
public class UserPageReqVO extends PageParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Length(max = 50, message = "姓名长度不能超过{max}字符")
    @Schema(description = "姓名")
    private String nickname;

    @Length(max = 50, message = "用户名长度不能超过{max}字符")
    @Schema(description = "用户名")
    private String username;

    @Length(max = 11, message = "手机号长度不能超过{max}字符")
    @Schema(description = "手机号")
    private String mobile;

}